package com.lunago.agent.pojo.entity;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.deser.std.FromStringDeserializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import java.util.Date;

public class UserPermium {
    private Integer id;

    @JsonSerialize(using = ToStringSerializer.class)  // 序列化为 String
    @JsonDeserialize(using = FromStringDeserializer.class)  // 反序列化时转换为 Long
    private Long userId;

    private Integer orderGemsLevelId;

    private Date startTime;

    private Date endTime;

    private Integer status;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getOrderGemsLevelId() {
        return orderGemsLevelId;
    }

    public void setOrderGemsLevelId(Integer orderGemsLevelId) {
        this.orderGemsLevelId = orderGemsLevelId;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}